package com.qdy.pay.common;

/**
 * User: rizenguo
 * Date: 2014/10/29
 * Time: 14:40
 * 这里放置各种配置数据
 */
public class  WeixinConfigure {

	//商户api秘钥
	private static String key = "o76vfffd334k60yktrv1sg52asdl3lj1";
	//支付结果回调接口
	private static String notify_url="https://qudingyi.com/payCallback";
	//小程序ID
	private static String appID = "wxf669876309ce1505";
	//商户号
	private static String mch_id = "1453486202";
	//小程序密钥
	private static String secret = "d6f45640810fbfbe3079bcb58ab12494";

	private static Boolean useThreadToDoReport;

	//以下是几个API的路径：
	//1)微信统一下单API
	public static  String APP_PAY_API="https://api.mch.weixin.qq.com/pay/unifiedorder";


	//2）被扫支付API
	public static String PAY_API = "https://api.mch.weixin.qq.com/pay/micropay";

	//3）被扫支付查询API
	public static String PAY_QUERY_API = "https://api.mch.weixin.qq.com/pay/orderquery";

	//4）退款API
	public static String REFUND_API = "https://api.mch.weixin.qq.com/secapi/pay/refund";

	//5）退款查询API
	public static String REFUND_QUERY_API = "https://api.mch.weixin.qq.com/pay/refundquery";

	//6）撤销API
	public static String REVERSE_API = "https://api.mch.weixin.qq.com/secapi/pay/reverse";

	//7）下载对账单API
	public static String DOWNLOAD_BILL_API = "https://api.mch.weixin.qq.com/pay/downloadbill";

	//8) 统计上报API
	public static String REPORT_API = "https://api.mch.weixin.qq.com/payitil/report";

	public static boolean isUseThreadToDoReport() {
		return useThreadToDoReport;
	}

	public static void setUseThreadToDoReport(boolean useThreadToDoReport) {
		WeixinConfigure.useThreadToDoReport = useThreadToDoReport;
	}

	public static String HttpsRequestClassName = "com.qdy.pay.common.HttpRequest";




	public static String getKey() {
		return key;
	}



	public static String getAppID() {
		return appID;
	}



	public static String getMch_id() {
		return mch_id;
	}

	public static void setKey(String key) {
		WeixinConfigure.key = key;
	}

	public static void setNotify_url(String notify_url) {
		WeixinConfigure.notify_url = notify_url;
	}

	public static void setAppID(String appID) {
		WeixinConfigure.appID = appID;
	}

	public static void setMch_id(String mch_id) {
		WeixinConfigure.mch_id = mch_id;
	}

	public static void setSecret(String secret) {
		WeixinConfigure.secret = secret;
	}

	public static String getSecret() {
		return secret;
	}

	public static String getNotify_url() {
		return notify_url;
	}
	public static Boolean getUseThreadToDoReport() {
		return useThreadToDoReport;
	}

	public static void setUseThreadToDoReport(Boolean useThreadToDoReport) {
		WeixinConfigure.useThreadToDoReport = useThreadToDoReport;
	}
}
